package com.heima.search.repository;

import com.heima.search.entity.ApAssociateWords;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface ApAssociateWordsRepository extends MongoRepository<ApAssociateWords,Long> {

    List<ApAssociateWords> findTop5ByAssociateWordsStartingWithOrderByCreatedTimeDesc(String name);

    List<ApAssociateWords> findByAssociateWordsStartingWithOrderByCreatedTimeDesc(String name);
}
